import request from "@/utils/request";

export function LoginInterface(User) {
  /**
   * method:get post delete put
   * post   增加
   * put    修改
   * delete 删除
   * get    查询
   * post 和 put 加上注解 @RequestBody
   *
   * 登录检查接口
   * params
   */
  return request({
    url: "/Login/LoginInterface",
    method: "post",
    data: User,
  });
}

export function RegisterInterface(data = { name: null, password: null }) {
  /**
   * method:get post delete put
   * post   增加
   * put    修改
   * delete 删除
   * get    查询
   * post 和 put 加上注解 @RequestBody
   */
  return request({
    url: "/Login/RegisterInterface",
    method: "post",
    data,
  });
}
